﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CreatingTypes
{
    internal class _04Deconstructors
    {
        public readonly float Width, Height;
        public _04Deconstructors(float width, float height)
        {
            Width = width;
            Height = height;

        }
        //解构函数
        public void Deconstruct(out float width, out float height)
        {
            width = Width;
            height = Height;
        }
    }
}
